<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script>
    <title>antV-G2Plot demo</title>
</head>
<body>
    <div id="g2-container"></div>
    <script>
        const { Line } = G2Plot;
        const chartData = [
            { year: 2015, value: 100 },
            { year: 2016, value: 200 },
            { year: 2017, value: 250 },
            { year: 2018, value: 410 },
            { year: 2019, value: 953 },
            { year: 2020, value: 1030 },
            { year: 2021, value: 100 },
        ];
        const line = new Line('g2-container', {
            data: chartData,
            xField: 'year',
            yField: 'value',
        });
        line.render();
    </script>
</body></html>